package com.etc.redis;

/**
 * 文件名:com.etc.redis
 * 描述：省份，城市，地区的redis缓存前缀信息
 * 作者:吴仕泉
 * 时间:2019/5/26 15:34
 */
public class ProvCityAreaKey extends BasePrefix {

    public ProvCityAreaKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }
    //0表示永久保存
    //保存一周时间
    private static int times = 3600*24*7;
    //所有省份前缀
    public static ProvCityAreaKey  allProvinceKey = new ProvCityAreaKey(times,"allprov");
    //某个省份前缀
    public static  ProvCityAreaKey  oneProvinceKey = new ProvCityAreaKey(times,"oneprov");

    //所有城市前缀
    public static ProvCityAreaKey  allCityKey = new ProvCityAreaKey(times,"allcity");
    //某个城市前缀
    public static  ProvCityAreaKey  oneCityKey = new ProvCityAreaKey(times,"onecity");

    //所有地区前缀
    public static ProvCityAreaKey  allAreaKey = new ProvCityAreaKey(times,"allarea");
    //某个地区前缀
    public static  ProvCityAreaKey  oneAreaKey = new ProvCityAreaKey(times,"onearea");

}
